package com.myapp;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class DevHelloService implements HelloService{

    //这个值是读取开发环境下的配置文件注入
    private String name="dev";

    public String sayHello() {
        return name;
    }

}